//
//  DHCUtil.h
//  Trading365
//
//  Created by Jason on 12-3-29.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#define Key_SaveLogin_CompanyCode    @"company_code"
#define Key_SaveLogin_UserID    @"userid"
#define Key_SaveLogin_UserName  @"username"
#define Key_SaveLogin_PassWord  @"password"
#define Key_SaveLogin_NickName  @"name_cn"
#define Key_SaveLogin_RoleID    @"role_id"
#define Key_SaveLogin_RoleName  @"role_name"
#define Key_SaveLogin_PosiID    @"posi_id"
#define Key_SaveLogin_PosiName  @"posi_name"
#define Key_SaveLogin_Permission  @"permission"
#define Key_SaveLogin_isChance  @"chance"
#define KFileName_login @"login.plist"

//#define KFileName_settings @"settings.plist"
#define Key_Settings_Version    @"version"
#define Key_Settings_UpdateDate    @"update_date"

//消息数量
#define Key_Message_Count1    @"count1"
#define Key_Message_Count2    @"count2"
#define Key_Message_Count3    @"count3"
#define Key_Message_Count4    @"count4"
#define Key_Message_Count5    @"count5"
//邮箱
#define Key_Mail_Address    @"mail_address"


#import <Foundation/Foundation.h>

@interface DHCUtil : NSObject

+(NSString *)dataFilePath;
//+(NSString *)settingsFilePath;
+(NSString *)getDateFromString:(NSString *)strDate;
+(NSString *)getDateFromString1:(NSString *)strDate;

+(NSString *)getCurrentDateTime;
+(NSString *)getCurrentDate;
+(NSString *)getCurrentTime;

+(NSString *)getDeviceType;

//检查字符串是否为数字
+(BOOL) checkIsNum:(NSString *) strNum;

//检测网络连接
//+ (BOOL) connectedToNetwork;

@end
